<template>
  <div>
    <h1>app</h1>
    <router-view></router-view>
    <ul>
      <li>
        <!-- 建议使用对象的方式 -->
        <router-link :to="{ path: '/shouye' }">首页</router-link>
      </li>
      <li>
        <router-link :to="{ name: 'fenlei' }">分类</router-link>
      </li>
      <li>
        <router-link to="/car">购物车</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
ul {
  display: flex;
  justify-content: space-evenly;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: pink;
  li {
    a {
      text-decoration: none;
      color: black;
    }
    .router-link-active {
      color: red;
    }
  }
}
</style>